package my.package0331;

import java.util.Scanner;

public class dome3 {
//    用户输入正方形边长，用*打印出实心正方形。
        public static  void main(String args[]){
            Scanner scanner = new Scanner(System.in);
            System.out.println("正方形边长：");
            int x = scanner.nextInt();

            for(int i = 1; i <= x ; i++) {
                for (int j = 1; j <= x; j++) {
                System.out.print("*"+""+"\t");
                }
                System.out.println();
        }
    }
}
